﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/default.Master" AutoEventWireup="true" CodeBehind="Compliance-Report.aspx.cs" Inherits="NRCP.Compliance_Report" %>
<%@ Import Namespace="NRCP.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="grid_20">
        
        <asp:GridView ID="grvCompliance" runat="server" SkinID="GridView">
            <Columns>
            <asp:BoundField DataField="Year" HeaderText="Year" />
                <asp:BoundField DataField="TestParamter" HeaderText="Paramter" />
                <asp:BoundField DataField="Name" HeaderText="Name" />
                <asp:BoundField DataField="Address" HeaderText="Address" />
                <asp:TemplateField HeaderText="Remarks">
                    <ItemTemplate>
                        <span class='<%# Eval("Remarks").ToString()=="NotSatisfactory"?"red-mark":"green-mark" %>'>
                            <%# Eval("Remarks") %></span>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <a href="<%= SiteSettings.BaseUrl %>farmer-edit.aspx">Edit</a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <a href="<%= SiteSettings.BaseUrl %>farmer-tests.aspx">Tests</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
